Simple and useful!
This video provides a guide on how to simplify the process of retrieving logs from Kubernetes pods.
It demonstrates two key methods:
-
Using the Deployment Names: 🚀 Explaining how to retrieve logs based on a deployment name, allowing you to stream logs from a pod associated with the specified deployment.
-
Using the Labels: 🔍 Demonstrating how to retrieve logs from all pods associated with a specific label, showing log stream for all pods belonging to a deployment.
It is nothing new, and very simple, yet a good thing to know.
You will find more tips and tricks here: https://github.com/devoriales/kubectl-cheatsheet